<?php

namespace App\Models\Income;

use App\Models\Model;

class IncomeCard extends Model
{
    protected $table = 'akbus_income_card';

    protected $fillable = [
        'date',
        'team',
        'line',
        'license_plate_num',
        'card_type',
        'charge_count',
        'free_count',
        'total_count',
        'discount_before_amt',
        'discount_after_amt',
        'discount_amt',
    ];

    /**
     * 拼接车牌号字符
     *
     * @param  string  $value
     *
     * @return string
     */
    public function getLicensePlateNumAttribute($value)
    {
        return '陕G'.$value;
    }
}
